﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IsolateReasonEntry.aspx.cs" Inherits="MTRC.ODMS.Web.SOM.CodeSetup.IsolateReasonEntry" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../../Javascript/CommonFunction.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    var LeavePage='<%=this.GetMessage("COM_LeavePage")%>'
    function CheckCriteria()
    {
        if(trim(document.getElementById("txtCatEN").value)=="")
        {
            alert("");
            return false;
        }
    }  
        
    function Cancel() 
    {
        
        if (IsServerChanged || IsPageChanged())
        {
            if(confirm(LeavePage))
            {             
               window.location.href = "IsolateReasonList.aspx";
            }
        }
        else
        {
           window.location.href="IsolateReasonList.aspx";
        }
        return false;
    }
    
        function Void(message)
        {//debugger;
            if(document.getElementById("chkVoid").checked==true)
            {
                if(confirm(message))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return true;
            
        }
        
    function New() 
    {
        
        if (IsServerChanged || IsPageChanged())
        {
            if(confirm(LeavePage))
            {             
               window.location.href = "IsolateReasonEntry.aspx";
            }
        }
        else
        {
           window.location.href="IsolateReasonEntry.aspx";
        }
        return false;
    }
    </script>

    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">  
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>      
            <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
                <tr>
                   <td colspan="2" class="Page_Head">
                        <WebStructure:PageHead ID="PageHead" runat="server" />
                    </td>
                </tr>               
                <tr>
                    <td class="Page_Left">
                        <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140911" />
                    </td>
                    <td class="Page_Right">
                       <table class="Page_Contents">
                          <tr>
                            <td class="TabStrip"><WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140814" ParentMenuID="M140911" DMenuMode="CurrOnly" runat="server" /></td>
                          </tr>
                          <tr>
                            <td class="Contents" style="height: 16px">
                             
                             <!--**********context Begin *****************-->
                                 
                                <fieldset>
                                <legend class="Title1">
                                    <asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></legend>
                                   <table width="100%">
                                    <tr>
                                        <td style="width: 220px">
                                            <asp:Label ID="lblIsolationReasonCode1" runat="server" Text="Isolation Reason Code1"></asp:Label><em>*</em>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtIsolationReasonCode1" runat="server" MaxLength="40" Width="458px"></asp:TextBox><asp:HiddenField ID="hidID" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 220px">
                                            <asp:Label ID="lblIsolationReasonCode2" runat="server" Text="Isolation Reason Code2"></asp:Label><em>*</em></td>
                                        <td>
                                            <asp:TextBox ID="txtIsolationReasonCode2" runat="server" MaxLength="40" Width="458px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 220px">
                                            <asp:Label ID="lblIsolationReasonCode3" runat="server" Text="Isolation Reason Code3"></asp:Label><em>*</em></td>
                                        <td>
                                            <asp:TextBox ID="txtIsolationReasonCode3" runat="server" MaxLength="40" Width="458px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:CheckBox ID="chkVoid" runat="server" Text="" TextAlign="Left"  OnCheckedChanged="chkVoid_CheckedChanged" AutoPostBack="True" /></td>
                                        
                                    </tr>
                             
                                    
                                    <tr>
                                        <td colspan="2">
                                        
                                             <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                                                <asp:Button ID="btnSaveAndReturn" runat="server" Text="Save And Return" OnClick="btnSaveAndReturn_Click" />
                                                <asp:Button ID="btnSaveAndNew" runat="server" Text="Save And New" OnClick="btnSaveAndNew_Click" />
                                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClientClick="return Cancel()" />
                                        </td>    
                                    </tr>
                                   </table>
                                </fieldset>
                             <!--**********context End *****************-->
                            </td>
                          </tr>
                          <tr>
                            <td class="Page_Foot" style="height: 54px"><WebStructure:PageFoot ID="PageFoot" runat="server" /></td>
                          </tr>
                       </table>                                              
                    </td>
                </tr>                
            </table>        
    </form>
</body>
</html>
